package org.dromara.wx.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * 用户和角色关联对象 wx_user_role
 *
 * @author yf
 * @date 2024-06-05
 */

@Data
@TableName("wx_user_role")
public class WxUserRole implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    public static final String TRANS_ID_TO_OBJECT = "wx_user_role_id_to_object";

    /**
     * 自增编号
     */
    @TableId(value = "user_role_id", type = IdType.AUTO)
    private Integer userRoleId;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 角色ID
     */

    private Integer roleId;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     *
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private String delFlag;

}
